package structure.facade;

import java.io.IOException;
import java.io.InputStream;

public class Facade {
    private FileReader fileReader = new FileReader();
    private EncryptData encryptData = new EncryptData();

    private FileWriter fileWriter=new FileWriter();

    public void saveFile(String sourcePath,String targetPath) throws IOException {
        String data=fileReader.read(sourcePath);
        String middleData=encryptData.encrypt(data);
        fileWriter.write(middleData,targetPath);

    }
}
